package com.exception2;

import com.common.response.Result;
import lombok.Data;

import java.io.Serializable;

@Data
public class CodeMirrorException extends RuntimeException implements Serializable {
    private int code;
    private String msg;
    public CodeMirrorException(String msg){
        this.code = Result.ERROR;
        this.msg = msg;
    }
    public CodeMirrorException(int code ,String msg){
        this.code = code;
        this.msg = msg;
    }
}
